/*
 * @(#)AjaxDMSContextMenuTag.java
 * Copyright (c) 2007 DCIVision Ltd All rights reserved.
 *
 *  This software is the confidential and proprietary information of DCIVision Ltd
 *  ("Confidential Information"). You * shall not disclose such Confidential
 *   Information and shall use it only in accordance with the terms of the
 *   license agreement you entered into with DCIVision Ltd.
 */
package com.dcivision.framework.taglib.channel;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

import com.dcivision.dms.taglib.DocumentContextMenuTag;
import com.dcivision.framework.ApplicationException;

/**
 * <p>
 * Class Name: AjaxDMSContextMenuTag.java
 * </p>
 *
 * @author Gaby Wu
 * @company DCIVision Limited
 * @creation date 2007-8-8
 */
public class AjaxDMSContextMenuTag extends DocumentContextMenuTag {

  private Log log = LogFactory.getLog(this.getClass());
  public String getAjaxContext() throws ApplicationException{
    try{
      this.init();
      return this.renderContextMenu();
    }catch(Exception ex){
      log.error(ex.getMessage(), ex);
      throw new ApplicationException(ex);
    }
  }

}
